package com.iye.puretennis.custom;

import android.content.Context;
import android.graphics.Typeface;
import android.util.AttributeSet;
import android.widget.EditText;
import com.iye.puretennis.helper.Constant;

/**
 * Created with IntelliJ IDEA.
 * User: jing wu
 * Date: 2014/12/8
 * Time: 14:57
 */
public class HuaWenHuPoEditText extends EditText{

    public HuaWenHuPoEditText(Context context) {
        super(context);
        init();

    }

    public HuaWenHuPoEditText(Context context, AttributeSet attrs) {
        super(context, attrs);
        init();

    }

    public HuaWenHuPoEditText(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
        init();

    }

    public void init(){

        CustomApplication application = (CustomApplication) getContext().getApplicationContext();

        setTypeface(application.getHuaWenHuPo());
    }
}
